package com.zhongwang.business.module.basic.dao;

import com.zhongwang.business.module.basic.model.DictEnumModel;
import com.zhongwang.business.module.basic.model.OrgModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface OrgDao {

    List<OrgModel> selectAll(String name);

    int update(OrgModel org);

    OrgModel findByName(String name);

    int save(OrgModel org);

    int updateStatusByIdWithRecursion(@Param("id") Integer id, @Param("status") int status);

    List<DictEnumModel> findByGroupName(String groupName);
}
